package com.eudon.user.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * @author eudon
 * @description 用户角色
 * @date 2025/9/8
 * @email syd19970616@gmail.com
 * @address <a href="https://gitee.com/eudon">Gitee</a>
 */
public enum UserRole implements BaseEnum {
    ADMIN(1,"管理员角色" , "admin"),
    NORMAL_USER(2,"普通用户角色" , "user"),
    VIP_USER(3,"VIP用户角色" , "vip_user");

    @EnumValue
    private final int code;
    private final String desc;
    private final String name;

    UserRole(int code, String desc, String name) {
        this.code = code;
        this.desc = desc;
        this.name = name;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }

    @Override
    public String getName() {
        return name;
    }
}
